package beautiful.butterfly.drds.schedule.task.schedule_manager;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


class HeartBeatTimerTask extends java.util.TimerTask {
    private static transient Logger log = LoggerFactory
            .getLogger(HeartBeatTimerTask.class);
    Manager manager;

    public HeartBeatTimerTask(Manager aManager) {
        manager = aManager;
    }

    public void run() {
        try {
            Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
            manager.refreshServerInfo();
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
        }
    }
}
